import service from '@/utils/request'

// @Tags BcAgency
// @Summary 创建bcAgency表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BcAgency true "创建bcAgency表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /bcAgency/createBcAgency [post]
export const createBcAgency = (data) => {
  return service({
    url: '/bcAgency/createBcAgency',
    method: 'post',
    data
  })
}

// @Tags BcAgency
// @Summary 删除bcAgency表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BcAgency true "删除bcAgency表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /bcAgency/deleteBcAgency [delete]
export const deleteBcAgency = (data) => {
  return service({
    url: '/bcAgency/deleteBcAgency',
    method: 'delete',
    data
  })
}

// @Tags BcAgency
// @Summary 批量删除bcAgency表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除bcAgency表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /bcAgency/deleteBcAgency [delete]
export const deleteBcAgencyByIds = (data) => {
  return service({
    url: '/bcAgency/deleteBcAgencyByIds',
    method: 'delete',
    data
  })
}

// @Tags BcAgency
// @Summary 更新bcAgency表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BcAgency true "更新bcAgency表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /bcAgency/updateBcAgency [put]
export const updateBcAgency = (data) => {
  return service({
    url: '/bcAgency/updateBcAgency',
    method: 'put',
    data
  })
}

// @Tags BcAgency
// @Summary 用id查询bcAgency表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.BcAgency true "用id查询bcAgency表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /bcAgency/findBcAgency [get]
export const findBcAgency = (params) => {
  return service({
    url: '/bcAgency/findBcAgency',
    method: 'get',
    params
  })
}

// @Tags BcAgency
// @Summary 分页获取bcAgency表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取bcAgency表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /bcAgency/getBcAgencyList [get]
export const getBcAgencyList = (params) => {
  return service({
    url: '/bcAgency/getBcAgencyList',
    method: 'get',
    params
  })
}

export const getProjectList = () => {
  return service({
    url: '/bcProject/getProjectList',
    method: 'get'
  })
}
